how to use json server put method